package com.learn.mvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {

    @RequestMapping("/user/account")
    @ResponseBody
    public String userAccount(){
        return  "访问用户的地址";
    }

    @RequestMapping("/user/login")
    @ResponseBody
    public String userLogin(){
        return  "访问用户的login";
    }

    //测试fitler使用
    @RequestMapping("/query")
    @ResponseBody
    public String query(){
        return  "测试fitler";
    }
}
